package zmee.util;

import kd.bos.dataentity.entity.DynamicObject;
import kd.bos.orm.query.QCP;
import kd.bos.orm.query.QFilter;
import kd.bos.servicehelper.BusinessDataServiceHelper;

public class DBUtil {

    public static String getParamValue(String key) {
        QFilter qFilter = new QFilter("number", QCP.equals, key);
        DynamicObject paramObject = BusinessDataServiceHelper.loadSingle("zmee_properties", "zmee_value",
                new QFilter[] { qFilter });
        if (null != paramObject) {
            return paramObject.getString("zmee_value");
        } else {
            return null;
        }
    }
}
